<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>字幕组</title>
    <!-- Bootstrap -->
    <link href="/Public/bootstrap/css/bootstrap.min.css" rel="stylesheet">

    <style type="text/css">
        body {
            font-size: 12px !important;
            font-family: 'Microsoft YaHei', "宋体", Geneva, sans-serif;
            line-height: 150%;
            color: #575757;
            margin: 0;
            padding: 0;
            background: #eeeeee;
        }
        .navbar{
            display: block;
            position: relative;

        }
        .top{
            top: 0px;
            margin: 0px;
        }
        .news{
            top: 0px;
            margin: 0px;
        }
        #bs-example-navbar-collapse-2{
            float: right;
        }
        .label{
            float: right;
            color: #FFFFFF;
        }

        .t-title{
            border-radius: 5px;
            height: 30px;
            background-color: #333;
        }
        .t-name{
            margin: 0px;
            color: #FFFFFF;
            padding: 6px 18px;
        }
        .middle{
            top: 8px;
            position: relative;
        }

    </style>
    <script src="/Public/js/jquery-3.0.0.min.js"></script>
    
    <link href="/Public/css/comment.css" rel="stylesheet" type="text/css">

</head>
<body>
<!------  导航条开始 ------->
<div class="bs-example bs-navbar-top-example" data-example-id="navbar-fixed-to-top">
    <nav class="navbar navbar-inverse" role="navigation">
        <!-- We use the fluid option here to avoid overriding the fixed width of a normal container within the narrow content columns. -->
        <div class="container-fluid">
            <div class="navbar-header">
                <a class="navbar-brand" href="<?php echo U('Index/index');?>">字幕组</a>
            </div>

            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-6">
                <ul class="nav navbar-nav">
                    <li><a href="<?php echo U('Index/index');?>">首页</a></li>

                    <li><a href="<?php echo U('News/index');?>">资讯</a></li>
                    <li><a href="<?php echo U('Movie/index');?>">影视库</a></li>


                </ul>
                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-2">
                    <form class="navbar-form navbar-left" role="search">
                        <div class="form-group">
                            <input type="text" class="form-control" placeholder="请输入搜索关键字">
                        </div>
                        <button type="submit" class="btn btn-default">查找</button>
                    </form>
                </div>
            </div><!-- /.navbar-collapse -->
            <iframe id="tmp_downloadhelper_iframe" style="display: none;"></iframe></div>
    </nav>
</div>

<div class="container col-md-12">
    
    <div class="left col-md-8">

        <!----简介-------->

        <div class="top ">
            <div class="bs-example " data-example-id="default-media">
                <div class="media">
                    <div class="media-left">
                        <a href="#">
                            <img class="media-object" data-src="holder.js/64x64" alt="64x64" style="width: 220px; height: 380px;" src="<?php echo ($a["thumb"]); ?>" data-holder-rendered="true">
                        </a>
                    </div>
                    <div class="media-body">
                        <h4 class="media-heading"><p>片名：<?php echo ($a["title"]); ?></p></h4>
                        <div >
                        <p>概述</p>
                            <?php echo (htmlspecialchars_decode($a["category_content"])); ?>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!------编辑器------>
        <div class="editor " >
            <form method="post" action="<?php echo U('comment');?>">
                <input type="hidden" name="article_id" value="<?php echo ($a["id"]); ?>" >
                <script id="container" name="content" type="text/plain">

                </script>
                <input type="submit" style="top: 20px;">
            </form>
            <!-- 配置文件 -->
            <script type="text/javascript" src="/Public/ueditor-php/utf8-php/ueditor.config.js"></script>
            <!-- 编辑器源码文件 -->
            <script type="text/javascript" src="/Public/ueditor-php/utf8-php/ueditor.all.js"></script>
            <!-- 实例化编辑器 -->
            <script type="text/javascript">
                var ue = UE.getEditor('container');
            </script>
        </div>
    </div>

    <div class="right col-md-4">
        <div class="comment">
            <!-- -------------摇奖排行榜---------------  -->
            <div class="Top_Record">
                <div class="record_Top"><p>影片评论</p></div>
                <div class="topRec_List">
                    <dl>
                        <dd>用户名</dd>
                        <dd>评论</dd>
                    </dl>
                    <div class="maquee">
                        <ul>
                            <?php if(is_array($comments)): $i = 0; $__LIST__ = $comments;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$c): $mod = ($i % 2 );++$i;?><li>
                                        <div>XXX</div>
                                        <div><?php echo (htmlspecialchars_decode($c["content"])); ?></div>
                                </li><?php endforeach; endif; else: echo "" ;endif; ?>
                        </ul>
                    </div>
                </div>
            </div>

            <!------滚动框
            <div class="apple">
                <ul>
                    <li><a href="#" target="_blank">你是我的小丫小苹果 </a></li>
                    <li><a href="#" target="_blank">怎么爱你都不嫌多</a></li>
                    <li><a href="#" target="_blank">红红的小脸儿温暖我的心窝 </a></li>
                    <li><a href="#" target="_blank">点亮我生命的火 火火火火</a></li>
                    <li><a href="#" target="_blank">你是我的小丫小苹果 </a></li>
                    <li><a href="#" target="_blank">就像天边最美的云朵</a></li>
                    <li><a href="#" target="_blank">春天又来到了花开满山坡 </a></li>
                    <li><a href="#" target="_blank">种下希望就会收获</a></li>
                </ul>
            </div>
            ----->
        </div>
    </div>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="/Public/js/jquery.min.js"></script>

    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="/Public/bootstrap/js/bootstrap.min.js"></script>


    
    <script type="text/javascript">
        function autoScroll(obj){
            $(obj).find("ul").animate({
                marginTop : "-39px"
            },500,function(){
                $(this).css({marginTop : "0px"}).find("li:first").appendTo(this);
            })
        }
        $(function(){
            setInterval('autoScroll(".maquee")',3000);
            setInterval('autoScroll(".apple")',2000);

        })

    </script>


</body>
</html>